@extends('admin.common.main')

@section('cnt')
    <nav class="breadcrumb">
        <i class="Hui-iconfont">&#xe67f;</i> 首页
        <span class="c-gray en">&gt;</span> 用户中心
        <span class="c-gray en">&gt;</span> 角色授予
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
           href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
    </nav>


    <article class="page-container">
        {{--引用验证--}}
        @include('admin.common.validate')
        @include('admin.common.msg')

        <form action="{{route('admin.user.role',$user)}}" method="post" class="form form-horizontal">
            @csrf
            <div class="row cl">
                @foreach($roleAll as $v)
                    <label class="checkbox-inline">
                        <input type="radio" name="role_id" @if($user['role_id'] == $v['id']) checked  @endif value="{{$v['id']}}"> {{$v['role_name']}}
                    </label>
                @endforeach
            </div>
            <div class="row cl">
                <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                    <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
                </div>
            </div>
        </form>
    </article>
@endsection

@section('js')
    <script>

    </script>
@endsection
